<?php
/**
 * 供货商验证器
 * @author maniac
 */
namespace app\common\validate;

class GoodSuppliers extends Base
{
    // 验证规则
    protected $rule = [
        'name'            => 'require|unique',
        'contact'         => 'require',
        'contact_phone'   => 'require',
        'contact_address' => 'require',
    ];
    
    // 错误信息
    protected $message = [
        'name.require'    => '请输入供货商名称',
        'contact'         => '请输入联系人姓名',
        'contact_phone'   => '请输入联系人电话',
        'contact_address' => '请输入联系人地址',
    ];
}
